package com.mtl.article.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * 文章管理实体类
 *
 * @author lsc
 * @since 2019-08-09
 */
@Data
@Table(name="mtl_article")
@ApiModel(value = "Article对象", description = "文章管理")

public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 鏂囩珷id
     */
    @ApiModelProperty(value = "鏂囩珷id")
    @Id

  private Integer id;
    /**
     * 文章标题
     */
    @ApiModelProperty(value = "文章标题")
  
  private String des;
  @ApiModelProperty(value = "文章描述")

  private String title;
    /**
     * 文章作者
     */
    @ApiModelProperty(value = "文章作者")
  
  private String author;
    /**
     * 上传时间
     */
    @ApiModelProperty(value = "上传时间")
  
  private LocalDateTime postTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
  
  private LocalDateTime updataTime;
    /**
     * 文章图片
     */
    @ApiModelProperty(value = "文章图片")
  
  private String img;
    /**
     * 文章内容
     */
    @ApiModelProperty(value = "文章内容")
  
  private String text;
    /**
     * 分类编号
     */
    @ApiModelProperty(value = "分类编号")
  
  private Integer sortId;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
  
  private Integer userId;


}
